#include "MyTools.h"
#include <string>
#include <iostream>

MyTools *MyTools::mInstance = 0;

MyTools::MyTools()
{
    pthread_mutex_init(&mMutex, NULL);
}

MyTools::~MyTools()
{
    pthread_mutex_destroy(&mMutex);
}

void MyTools::Log(std::string str)
{
    pthread_mutex_lock (&mMutex);
    std::cout<<str<<std::endl;
    pthread_mutex_unlock (&mMutex);
}




